package com.sys.log.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sys.log.entity.SysLog;
import com.sys.log.mapper.SysLogMapper;
import com.sys.log.service.SysLogService;

@Transactional
@Service
public class SysLogServiceImpl  extends ServiceImpl<SysLogMapper, SysLog>implements SysLogService{

	 @Autowired
	 SysLogMapper sysLogMapper;
	
	@Override
	public List<SysLog> getSysLogViews(Page<SysLog> page, SysLog view) {
		page.setRecords(this.sysLogMapper.getSysLogViews(page, view));
	    return page.getRecords();
	}

}
